package com.example.chatchatbackend.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.chatchatbackend.entity.dto.Materials;
import com.example.chatchatbackend.entity.dto.Shopping;
import com.example.chatchatbackend.entity.vo.response.MaterialsVO;

import java.util.List;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 丁真
 * @since 2024-10-28 05:03:47
 */
public interface MaterialsService extends IService<Materials> {

    List<MaterialsVO> getAllMaterials();

    IPage<Materials> pageThree(Integer pageNum, Integer pageSize) ;

    MaterialsVO insertMaterials(MaterialsVO materialsVO);

    List<MaterialsVO> insertMaterialsList(List<MaterialsVO> materialsVOList);

    MaterialsVO updateMaterials(MaterialsVO materialsVOList);

    void deleteByIds(List<Integer> ids);

    List<MaterialsVO> findByIds(List<Integer> ids);

    List<MaterialsVO> findByTitle(String title);
}
